#!/bin/bash

CLEARVIEW_DIR=$(pwd)
external_ip=$(./get_external_ip.sh)

/etc/init.d/ipfm start

data_dir=/mnt/clearview.$(date +%Y-%m-%d.%H:%M:%S)
mkdir $data_dir
cd $data_dir

ulimit -n 300000
ulimit -c unlimited
python2.6 $CLEARVIEW_DIR/hopper.py $external_ip 2000 9950 50
echo $data_dir